function TFC_Create( subjects, frequencyBins, baselineSettings )
%TFC_CREATE Create a new set of TFC files
%   For given subjects, files are created containing the tfc data for all
%   conditions. Frequencybins determines what frequency bands are used and the 
%   variable holds minFreq and maxFreq, name, and latex name. A frequency
%   bin contains: minFreq <= frequencies <= maxFreq (so including both
%   ends)
%
%   Defaults can be found in the code file..

%% Diary
tStart = InitializeDiary('TFC_Create');

%% Set up ..
if ~exist('subjects', 'var');
subjects = {...
    'CW' 'DS' 'JF' ...
    'CWSphere' 'CWFaceHouse' 'JFSphere' 'DSFaceHouse' ...
    'avgCW' 'avgSphere' 'avgFaceHouse' 'avg' ...
    };
end;

if ~exist('frequencyBins', 'var');
    frequencyBins = [7 13; 70 130];
end;

if ~exist('baselineSettings', 'var')
    baselineSettings.Stimulus.MinTime = -750;
    baselineSettings.Stimulus.MaxTime = -250;
    baselineSettings.Response.MinTime = 1500;
    baselineSettings.Response.MaxTime = 2000;
end


%% Actual work..
TFC1_CreateSets(subjects, frequencyBins, baselineSettings);

%% Diary
CloseDiary(tStart);
end
